#!/bin/sh

usage(){
echo "Usage:"
echo "$0 dir-name lib-name"
exit 1
}

( [ -z $1 ] || [ -z $2 ] ) && usage

[ -e "$1" ] || mkdir "$1"
[ -e "$1/Makefile" ] && echo "Makefile already exists" && exit 1
./MakeMakefile.sh "$2" > "$1/Makefile"
